package com.wetao.lib_common.bean.response;

import com.wetao.lib_common.base.Base2Response;
import com.wetao.lib_common.utils.JsonUtils;

import java.util.List;

/**
 * author: zhouyh
 * created on: 3/10/21 4:29 PM
 * description: 作业记录数据
 */
public class ExamListInfo extends Base2Response {


    /**
     * code : 0
     * msg : 成功
     * data : {"records":[{"studentExamId":20765,"examId":7517,"finishTime":"2021-01-20 14:07","correctTime":null,"answerAmount":0,"examPublishId":1871,"examName":"§1§2 课时1 函数概念","totalQuestion":13},{"studentExamId":20780,"examId":7538,"finishTime":"2021-01-20 14:05","correctTime":null,"answerAmount":0,"examPublishId":1883,"examName":"课时4 分段函数与映射-固学案","totalQuestion":12},{"studentExamId":20789,"examId":7537,"finishTime":"2021-01-20 11:21","correctTime":null,"answerAmount":1,"examPublishId":1882,"examName":"必修4综合测试卷","totalQuestion":22},{"studentExamId":20792,"examId":7537,"finishTime":"2021-01-20 11:50","correctTime":null,"answerAmount":1,"examPublishId":1888,"examName":"必修4综合测试卷","totalQuestion":22},{"studentExamId":20794,"examId":7540,"finishTime":"2021-01-20 14:14","correctTime":null,"answerAmount":0,"examPublishId":1890,"examName":"§11.2 圆的方程","totalQuestion":14},{"studentExamId":20795,"examId":7541,"finishTime":"2021-01-20 14:17","correctTime":null,"answerAmount":0,"examPublishId":1891,"examName":" 2019年6月上海卷","totalQuestion":20},{"studentExamId":20796,"examId":7541,"finishTime":"2021-01-20 14:18","correctTime":null,"answerAmount":20,"examPublishId":1892,"examName":" 2019年6月上海卷","totalQuestion":20},{"studentExamId":20798,"examId":7537,"finishTime":"2021-01-20 14:30","correctTime":null,"answerAmount":2,"examPublishId":1894,"examName":"必修4综合测试卷","totalQuestion":22},{"studentExamId":20799,"examId":7541,"finishTime":"2021-01-20 15:04","correctTime":null,"answerAmount":20,"examPublishId":1895,"examName":" 2019年6月上海卷","totalQuestion":20},{"studentExamId":20800,"examId":7542,"finishTime":"2021-01-20 14:38","correctTime":null,"answerAmount":4,"examPublishId":1896,"examName":"电子作业","totalQuestion":4}],"total":86,"size":10,"current":1,"pages":9}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static ExamListInfo objectFromData(String str) {

        return (JsonUtils.getmGson()).fromJson(str, ExamListInfo.class);
    }

    public static class DataBean  {
        /**
         * records : [{"studentExamId":20765,"examId":7517,"finishTime":"2021-01-20 14:07","correctTime":null,"answerAmount":0,"examPublishId":1871,"examName":"§1§2 课时1 函数概念","totalQuestion":13},{"studentExamId":20780,"examId":7538,"finishTime":"2021-01-20 14:05","correctTime":null,"answerAmount":0,"examPublishId":1883,"examName":"课时4 分段函数与映射-固学案","totalQuestion":12},{"studentExamId":20789,"examId":7537,"finishTime":"2021-01-20 11:21","correctTime":null,"answerAmount":1,"examPublishId":1882,"examName":"必修4综合测试卷","totalQuestion":22},{"studentExamId":20792,"examId":7537,"finishTime":"2021-01-20 11:50","correctTime":null,"answerAmount":1,"examPublishId":1888,"examName":"必修4综合测试卷","totalQuestion":22},{"studentExamId":20794,"examId":7540,"finishTime":"2021-01-20 14:14","correctTime":null,"answerAmount":0,"examPublishId":1890,"examName":"§11.2 圆的方程","totalQuestion":14},{"studentExamId":20795,"examId":7541,"finishTime":"2021-01-20 14:17","correctTime":null,"answerAmount":0,"examPublishId":1891,"examName":" 2019年6月上海卷","totalQuestion":20},{"studentExamId":20796,"examId":7541,"finishTime":"2021-01-20 14:18","correctTime":null,"answerAmount":20,"examPublishId":1892,"examName":" 2019年6月上海卷","totalQuestion":20},{"studentExamId":20798,"examId":7537,"finishTime":"2021-01-20 14:30","correctTime":null,"answerAmount":2,"examPublishId":1894,"examName":"必修4综合测试卷","totalQuestion":22},{"studentExamId":20799,"examId":7541,"finishTime":"2021-01-20 15:04","correctTime":null,"answerAmount":20,"examPublishId":1895,"examName":" 2019年6月上海卷","totalQuestion":20},{"studentExamId":20800,"examId":7542,"finishTime":"2021-01-20 14:38","correctTime":null,"answerAmount":4,"examPublishId":1896,"examName":"电子作业","totalQuestion":4}]
         * total : 86
         * size : 10
         * current : 1
         * pages : 9
         */

        private Integer total;
        private Integer size;
        private Integer current;
        private Integer pages;
        private List<RecordsBean> records;

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        public Integer getSize() {
            return size;
        }

        public void setSize(Integer size) {
            this.size = size;
        }

        public Integer getCurrent() {
            return current;
        }

        public void setCurrent(Integer current) {
            this.current = current;
        }

        public Integer getPages() {
            return pages;
        }

        public void setPages(Integer pages) {
            this.pages = pages;
        }

        public List<RecordsBean> getRecords() {
            return records;
        }

        public void setRecords(List<RecordsBean> records) {
            this.records = records;
        }

        public static DataBean objectFromData(String str) {

            return (JsonUtils.getmGson()).fromJson(str, DataBean.class);
        }

        public static class RecordsBean {
            /**
             * studentExamId : 20765
             * examId : 7517
             * finishTime : 2021-01-20 14:07
             * correctTime : null
             * answerAmount : 0
             * examPublishId : 1871
             * examName : §1§2 课时1 函数概念
             * totalQuestion : 13
             */

            private Integer studentExamId;
            private Integer examId;
            private String finishTime;
            private String correctTime;
            private Integer answerAmount;
            private Integer examPublishId;
            private String examName;
            private Integer totalQuestion;




            public static RecordsBean objectFromData(String str) {

                return (JsonUtils.getmGson()).fromJson(str, RecordsBean.class);
            }

            public Integer getStudentExamId() {
                return studentExamId;
            }

            public void setStudentExamId(Integer studentExamId) {
                this.studentExamId = studentExamId;
            }

            public Integer getExamId() {
                return examId;
            }

            public void setExamId(Integer examId) {
                this.examId = examId;
            }

            public String getFinishTime() {
                return finishTime;
            }

            public void setFinishTime(String finishTime) {
                this.finishTime = finishTime;
            }

            public String getCorrectTime() {
                return correctTime;
            }

            public void setCorrectTime(String correctTime) {
                this.correctTime = correctTime;
            }

            public Integer getAnswerAmount() {
                return answerAmount;
            }

            public void setAnswerAmount(Integer answerAmount) {
                this.answerAmount = answerAmount;
            }

            public Integer getExamPublishId() {
                return examPublishId;
            }

            public void setExamPublishId(Integer examPublishId) {
                this.examPublishId = examPublishId;
            }

            public String getExamName() {
                return examName;
            }

            public void setExamName(String examName) {
                this.examName = examName;
            }

            public Integer getTotalQuestion() {
                return totalQuestion;
            }

            public void setTotalQuestion(Integer totalQuestion) {
                this.totalQuestion = totalQuestion;
            }
        }
    }
}
